{include file="common/common"}
<!-- /Page Sidebar -->
<!-- Page Content -->
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="#">系统</a>
            </li>
            <li>
                <a href="{:url('lst')}">权限管理</a>
            </li>
            <li class="active">更新权限</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">

        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-header bordered-bottom bordered-blue">
                        <span class="widget-caption">更新权限</span>
                    </div>
                    <div class="widget-body">
                        <div id="horizontal-form">
                            <form class="form-horizontal" role="form" action="{:url('edit')}" method="post">
                                <input type="hidden" value="{$rule.id}" name="id">
                                <div class="form-group">
                                    <label for="username" class="col-sm-2 control-label no-padding-right">上级权限</label>
                                    <div class="col-sm-6">
                                        <select name="pid" id="">
                                            <option value="0">顶级权限</option>
                                            {volist name='$authRuleRes' id='authRule'}
                                            <option value="{$authRule.id}" {if condition="$authRule['id'] eq $rule['pid']"}selected="selected"{/if}>{neq name="$authRule.level" value="0"}|{/neq}<?php echo str_repeat('-----',$authRule['level'])?>{$authRule.title}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>
                                <div class="form-group">
                                    <label for="title" class="col-sm-2 control-label no-padding-right">权限名称</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" placeholder="" name="title" required="" type="text" value="{$rule.title}">
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>
                                <div class="form-group">
                                    <label for="title" class="col-sm-2 control-label no-padding-right">控/方</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" placeholder=""  value="{$rule.name}" name="name" required="" type="text">
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>
                                <div class="form-group">
                                    <label for="username" class="col-sm-2 control-label no-padding-right">权限状态</label>
                                    <div class="col-sm-6">
                                        <label style="padding-top: 7px">
                                            <input id="myCheck" name="status" type="checkbox"  {if condition="$rule.status" eq 1}checked="checked"{/if} value="1" class="checkbox-slider colored-darkorange"><span class="text"></span>
                                        </label>
                                    </div>
                                </div>
                                <div class="form-group" style="margin-top: 50px">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-default">保存信息</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /Page Body -->
</div>
<!-- /Page Content -->
</div>
</div>

<!--Basic Scripts-->
<script src="__static__/style/jquery_002.js"></script>
<script src="__static__/style/bootstrap.js"></script>
<script src="__static__/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__static__/style/beyond.js"></script>



</body></html>